<div id="sidebar">
<ul>

	<li>
		<ul>
			<li><form method="get" id="searchform" action="<?php bloginfo('url'); ?>/">
<input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />
<input type="hidden" id="searchsubmit" value="Search" />
</form></li>
		</ul>
	</li>

<!-- 
	<li><h2><?php _e('Author'); ?></h2></li>
		<ul>
			<li>A little bit about yourself</li>
		</ul>
	</li>
	<li><h2><?php _e('Calendar'); ?></h2>
		<ul>
			<li><?php get_calendar(); ?></li>
		</ul>
	</li>
 -->

<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?>

	<?php wp_list_pages('depth=1&title_li=<h2>' . __('Pages') . '</h2>' ); ?>

	<li><h2><?php _e('Categories'); ?></h2>
		<ul>
			<?php wp_list_cats('sort_column=ID&optioncount=0&children=0'); ?>
		</ul>
	</li>

	<li><h2><?php _e('Archives'); ?></h2>
		<ul>
			<?php wp_get_archives('type=monthly'); ?>
		</ul>
	</li>

	<?php wp_list_bookmarks(); ?>

	<li><h2><?php _e('Meta'); ?></h2>
		<ul>
			<?php wp_register(); ?>
			<li><?php wp_loginout(); ?></li>
			<li><a href="<?php echo bloginfo('rss2_url'); ?>"><?php _e('Entries RSS'); ?></a></li>
			<li><a href="<?php echo bloginfo('comments_rss2_url'); ?>"><?php _e('Comments RSS'); ?></a></li>
			<li><a href="http://validator.w3.org/check?uri=referer"><?php _e('Valid XHTML'); ?></a></li>
		</ul>
	</li>
	<?php wp_meta(); ?>

<?php endif; ?>

</ul>

</div>